import java.io.File;
import java.io.IOException;
import java.nio.file.Files;

public class EtlIShttp {
    public static void main(String[] args) {
        File folder = new File("C:\\Users\\ASUS\\Desktop\\慧科项目\\eks-backend\\eks-backend\\ai\\configmap"); // 替换为实际文件夹路径

        if (folder.isDirectory()) {
            File[] files = folder.listFiles();
            if (files != null) {
                for (File file : files) {
                    if (file.isFile()) {
                        try {
                            String content = new String(Files.readAllBytes(file.toPath()));
                            String wordToSearch = "http://";
                            if (content.contains(wordToSearch)) {
                                System.out.println("File Name: " + file.getName());
                            }
                        } catch (IOException e) {
                            e.printStackTrace();
                        }
                    }
                }
            }
        }
    }
}
